import requests from '@/utils/request'
// 获取页面列表
export function getPagesList(params) {
  return requests({
    url: '/pages',
    params
  })
}

// export const getPagesList = (params) => requests({ url: '/pages', params })
// 获取页面数量
export const getPagesNum = (params) => requests({ url: '/pages/count', params })
// 获取指定页面
export const getPageInfo = (id) => requests({ url: '/pages/' + id })
// 新建页面
export const addPagesNum = (data) => requests({ url: '/pages', method: 'post', data })
// 编辑页面
export const undatePages = (data) => requests({ url: '/pages/' + data.id, data, method: 'put' })
// 删除页面
export const delPages = (id) => requests({ url: '/pages/' + id, method: 'delete' })

